package nan.nanfang.entity;

public abstract class tuzi {
    private String name;
    private String sleep;
    private String type;

    @Override
    public String toString() {
        return "tuzi{" +
                "name='" + name + '\'' +
                ", sleep='" + sleep + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSleep() {
        return sleep;
    }

    public void setSleep(String sleep) {
        this.sleep = sleep;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public tuzi(String name, String sleep, String type) {
        this.name = name;
        this.sleep = sleep;
        this.type = type;
    }
    public void aVoid(){
        System.out.println("兔子吃草");
    }
    public void Type(){
        System.out.println("hello"+"我是"+this.name);
    }

    protected abstract void tech();
}
